package decorator;

/**
 * @author shenhan
 * @create 2020/4/2 14:11
 * @description
 */
public class Cilent {
    public static void main(String[] args) {
        Drink order = new LongBlack();
        System.out.println(order.cost());
        System.out.println(order.getDes());
        // 加入牛奶
        order = new Milk(order);
        System.out.println(order.cost());
        System.out.println(order.getDes());
        order = new Chocolate(order);
        System.out.println(order.cost());
        System.out.println(order.getDes());
    }
}
